package com.boil.qz.safekavass.web.request.param;

import javax.validation.constraints.NotNull;

import com.boil.util.Constants;
import org.hibernate.validator.constraints.Range;

/**
 * 
 * 图片列表的请求参数。
 * 
 * @author ChenYong
 * @date 2016-10-19
 *
 */
public class PicListParam extends DateParam {
	/** 页数 */
	@NotNull(message = "页数不能为空")
	@Range(min = Constants.VALUE_L_1, max = Long.MAX_VALUE, message = "页数在1至9223372036854775807之间")
	private Long pageNum;
	/** 图片的名称 */
	private String picName;

	/**
	 * 
	 * 默认构造器。
	 * 
	 */
	public PicListParam() {
		super();
	}

	public Long getPageNum() {
		return pageNum;
	}

	public void setPageNum(Long pageNum) {
		this.pageNum = pageNum;
	}

	public String getPicName() {
		return picName;
	}

	public void setPicName(String picName) {
		this.picName = picName;
	}

	@Override
	public String toString() {
		return String.format("PicListParam [pageNum=%s, picName=%s, startDate=%s, endDate=%s]", pageNum, picName,
				startDate, endDate);
	}
}